﻿<div id="NavBar" style="position: fixed; top: 0px; width: 100%; z-index: 1000; opacity: .95">
    <nav class="navbar navbar-default" role="navigation">
        <div class="container-fluid">
        
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Администрирование</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="@Url.Action("Index","Admin")">Администрирование</a>
            </div>

            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li><a href="@Url.Action("Index","SiteMap")">Страницы сайта</a></li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Системные функции<b class="caret"></b></a>
                        <ul class="dropdown-menu">
                            <li><a href="@Url.Action("Log","Admin")">Журнал событий</a></li>
                            <li class="divider"></li>
                            <li><a href="#">Настройки SMTP</a></li>
                        </ul>
                    </li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                  <li><a href="#" onclick="HideNavbar()">Скрыть</a></li>
                </ul>                
            </div>
        </div>
    </nav>
</div>

<script type="text/javascript">
    function HideNavbar() 
    {
        $('#NavBar').css('display','none');
    }
</script>